package com.skyable.common.exceptions;

/**
 * @author GaoYuan
 * @date 2019/11/4 15:19
 * @desc 业务层级的异常，这类异常在message中不能包含任何调试信息，必须是用户友好的描述信息，
 */
public class BusinessException extends RuntimeException {
    /**
     *Comment for <code>serialVersionUID</code>
     */
    private static final long serialVersionUID = 6832695224568830049L;

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(String message, Integer code) {
        super(message);
        this.code = code;
    }

    private Integer code;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
